package com.tyx.chargingpile.service;

import com.tyx.chargingpile.dao.HeartInfoDao;
import com.tyx.chargingpile.pojo.HeartInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class HeartInfoService {
    @Autowired
    private HeartInfoDao heartInfoDao;

    public void add(HeartInfo heartInfo){
        heartInfoDao.save(heartInfo);
    }
}
